import request from '@/utils/request'

// 查询设备分类列表
export function listDeviceType(query) {
  return request({
    url: '/device/deviceType/list',
    method: 'get',
    params: query
  })
}
// 查询设备分类详细
export function getDeviceType(typeId) {
  return request({
    url: '/device/deviceType/' + typeId,
    method: 'get'
  })
}
//获取设备类别列表(用于下拉列表)
export function getDeviceTypeList(){
  return request({
    url: '/device/deviceType/getList',
    method: 'get'
  });
}
  // 新增设备查询
export function addDeviceType(data) {
  return request({
    url: '/device/deviceType',
    method: 'post',
    data: data
  })
}

// 修改设备查询
export function updateDeviceType(data) {
  return request({
    url: '/device/deviceType',
    method: 'put',
    data: data
  })
}

// 删除设备查询
export function deleteDeviceType(typeId) {
  return request({
    url: '/device/deviceType/' + typeId,
    method: 'delete'
  })
}